/*
 * @Description: 首页
 * @Project: 
 * @Author: michelle
 * @Date: 2022-02-22 14:18:00
 * @LastEditors: michelle
 * @LastEditTime: 2022-03-02 10:58:24
 * @Modified By: michelle
 * @FilePath: /trunkverse/src/pages/home/index.jsx
 */
import React, { useEffect } from 'react'
import { Button } from 'antd'
import './index.less'
import { post } from '../../utils/http'
export default function Home() {
    
    const handlClick = () => {
        post('/login',{
            username: 'root',
            password: 'root'
        }).then((res) => {
            console.log(res)
        })
    }

    return (
        <div className='home'>
            Home
            <button onClick={() => handlClick()} size="small" >调取接口测试下</button>
        </div>
    )
}